package com.car.dal.dao.blackphone;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.Blkphone;
import com.car.dal.object.TgTravel;

public class BlackphoneDaoimpl extends IbatisCommonDao<Blkphone, Long> implements BlackphoneDao {

	@Override
	public List<Blkphone> findByphone(Blkphone blkphone) {
		return this.queryForEntityList(Blkphone.class,"findByphone", blkphone);
	}

	@Override
	public void uupdate(Blkphone blkphone) {
		this.saveOrUpdate(blkphone);
		
	}

	@Override
	public void iinsert(Blkphone blkphone) {
		this.insert(blkphone);
		
	}

	@Override
	public Integer getblackphoneCount(Blkphone blkphone) {
		return this.queryForInteger("getblackphoneCount", blkphone);
	}

	@Override
	public List<Blkphone> getblackphone(Blkphone blkphone) {
		return this.queryForEntityList(Blkphone.class,"getblackphone", blkphone);
	}

}
